

<div class="bjui-pageContent">
	<form action="${base}/admin/systemRoleAdd" id="form1"
		data-toggle="validate" data-alertmsg="false">
		<table class="table table-condensed table-hover" width="100%">
			<tbody>
				<tr>
					<td><label for="roleName" class="control-label x85">名称：</label>
						<input type="text" name="roleName" id="roleName" value=""
						data-rule="required"></td>
					<td>
				</tr>
				<tr>
                    <td><label for="sourceKey" class="control-label x85">角色key：</label>
                    	<input type="text" name="sourceKey" id="sourceKey" value="" data-rule="required ">
                        &nbsp;<span style="color:#ff6600">*&nbsp;输入格式如：&nbsp;role:admin&nbsp;&nbsp;&nbsp;*必须有&nbsp;role:</span></td>
                    <td>
                </tr>
                <tr>
                    <td><label for="resourceList2" class="control-label x85">拥有资源：</label>
                        <select data-width=300 data-toggle="selectpicker" name="resourceList" id="resourceList" data-rule="required" multiple>
                            <#list resList?sort_by('order1')?reverse as i>
                             	<#if i.parId =0 >
                            	<option value="${i.id}">${i.name!}</option>
                              		<#list resList?sort_by('order1')?reverse as j>
                             			<#if j.parId=i.id >
                             			<#nt><option value="${j.id}">&nbsp;&nbsp;&nbsp;&nbsp;${j.name!}</option>
                             			</#if>
                             		</#list>
                            	</#if>
                            </#list>
                        </select></td>
                    <td>
                </tr>
				<tr>
                    <td><label for="comment" class="control-label x85">备注：</label>
                    	<textarea name="comment" id="comment" rows="3" cols="50"></textarea></td>
                    <td>
                </tr>
				<tr>
                    <td><label for="status" class="control-label x85">状态：</label>
						<select name="status" id="status" data-toggle="selectpicker">
						<#list statusList?keys as i><option value="${i}">${statusList[i]}</option></#list>
						</select></td>
					<td>
                </tr>
			</tbody>
		</table>
	</form>
</div>
<div class="bjui-pageFooter">
	<ul>
		<li><button type="button" class="btn-close" data-icon="close">取消</button></li>
		<li><button type="submit" class="btn-default" data-icon="save">保存</button></li>
	</ul>
</div>
